{extend name="platform/base" /}
{block name="resources"/}
<link rel="stylesheet" type="text/css" href="__STATIC__/blue/css/ns_table_style.css">
{/block}
{block name="main"}
<div class="set-style">
	<form action="{:__URL('PLATFORM_MAIN/extend/savePluginConfig')}" class="form-horizontal" method="post">
		{foreach name="data['config']" item="form" key="key"}
			{switch name="form.type"}
				{case value="text"}
					<dl>
						<dt>{$form.title}:</dt>
						<dd>
							<p><input type="text" name="config[{$key}]" value="{$form.value}" class="input-common"></p>
							<p class="hint">{$form.tip}</p>
						</dd>
					</dl>
				{/case}
				{case value="password"}
					<dl>
						<dt>{$form.title}:</dt>
						<dd>
							<p><input type="password" name="config[{$key}]" value="{$form.value}" class="input-common"></p>
							<p class="hint">{$form.tip}</p>
						</dd>
					</dl>
				{/case}
			{/switch}
		{/foreach}
		<dl>
			<dt></dt>
			<dd>
				<button type="submit" class="btn-common btn-big">确定</button>
				<input type="hidden" name="addons_id" value="{$addons_id}">
				<input type="hidden" name="plugin_id" value="{$plugin_id}">
			</dd>
		</dl>
	</form>
</div>
{/block}